//
//   Created by thanatos on 15-10-15.
//
extends public/layout
block content
    div.details
        div.container
            ol.breadcrumb
                mixin parent(category)
                    if(category.parent)
                        +parent(category.parent)
                    li
                        span #{category.name}
                if(goods.category)
                    +parent(goods.category)
                li
                    span #{goods.brand}
                li
                    span #{goods.title}
            div.product-info
                div.preview
                    div.big-image
                        img(src='#{goods.images[0]}' width='350' height='350')
                    div.col-md-12
                        ul.pre-image
                            each item in goods.images
                                li
                                    img(src='#{item}' width='50' height='50')
                div.item-inner
                    h4.title #{goods.title}
                    div.price-pane
                        div.col-md-12
                            span(style='width:50px;height:30px;line-height:30px;text-align:right;font-size:12px;float:left;') 西市价：
                            span.highlight-font(style='font-size:18px;float:left;font-weight:bold;height:30px;line-height:30px;') ￥#{goods.price}
    div.container
        div.product-params
            ul.nav.nav-tabs
                li.active
                    a(href='#intro' data-toggle='tab') 商品介绍
                li
                    a(href='#params', data-toggle='tab') 规格参数
                li
                    a(href='#details', data-toggle='tab') 包装清单
                li
                    a(href='#comment', data-toggle='tab') 商品评价(#{goods.comment})
            div.tab-content
                div#intro.tab-pane.active
                    ul.horizontal-menu
                        -each value, key in goods.attributes
                            li #{key}&nbsp:&nbsp#{value}
    div(style='height:400px')
